package com.park.service.impl.news;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.news.NewsCommentModel;
import com.park.client.service.news.NewsCommentService;
import com.park.dao.news.NewsCommentMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("newsCommentService")
public class NewsCommentServiceImpl extends BaseServiceImpl<NewsCommentModel> implements NewsCommentService{
	@Autowired
	private  NewsCommentMapper newsCommentMapper;
	
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return newsCommentMapper.deleteByPrimaryKey(id)==1;
	}

	@Override
	public boolean insert(NewsCommentModel record) {
		return newsCommentMapper.insert(record)==1;
	}

	@Override
	public boolean insertSelective(NewsCommentModel record) {
		return newsCommentMapper.insertSelective(record)==1;
	}

	@Override
	public NewsCommentModel selectByPrimaryKey(Long id) {
		return newsCommentMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean updateByPrimaryKeySelective(NewsCommentModel record) {
		return newsCommentMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKeyWithBLOBs(NewsCommentModel record) {
		return false;
	}

	@Override
	public boolean updateByPrimaryKey(NewsCommentModel record) {
		return newsCommentMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<NewsCommentModel> selectAll() {
		return newsCommentMapper.selectAll();
	}


	@Override
	public NewsCommentModel selectIsExists(NewsCommentModel record) {
		return newsCommentMapper.selectIsExists( record);
	}

	@Override
	public List<NewsCommentModel> selectByNewsId(Map<String, Object> map) {
		return newsCommentMapper.selectByNewsId(map);
	}

	@Override
	public List<NewsCommentModel> selectPagination(NewsCommentModel t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer selectTotal(NewsCommentModel t) {
		// TODO Auto-generated method stub
		return null;
	}


}
